<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="page">
    <h3 class="big-title">本金账户</h3>
    <div class="page-container" id="accountTypeHtml">
        <script id="accountTypeScript" type="text/html">
            {{each data item index}}
            {{if item.accountType==0}}
        <!--<h3 class="child-title">{{item.accountType | accountType}}:<span>{{item.amountNum}}</span></h3>-->
            {{/if}}
            {{/each}}
        <ul class="clearfloat infor-content">
            <li class="infor-answer"></li>
            <div class="clear-both"></div>
            {{each data item index}}
            {{if item.accountType!=0 && item.accountType!=2}}
            <li class="infor-label">{{item.accountType | accountType}}</li>
            <li class="infor-answer">{{item.amountNum}}</li>
            <div class="clear-both"></div>
            {{/if}}
            {{/each}}
        </ul>
        </script>
    </div>

</div>
<script src="js/jquery-1.8.3.min.js"></script>
<script src="js/moment-2.2.1.js"></script>
<script src="js/template-web.js"></script>
<script src="js/jdgj/config.js"></script>
<script >
    var userId = config.getUserId();
    // 加载账户信息
    template.defaults.imports.accountType = function(value){
        return config.accountType(value);
    };
    $.get(config.baseUrl + "/account/quaryAccount.json",{userId: userId}, function(result){
        if (result.status == 200) {
            //
            var html = template("accountTypeScript", result);
            $("#accountTypeHtml").html(html);
        }
    });
</script>
</body>
</html>